/**
 * 
 */
package com.pe.pgn.clubpgn.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.compass.annotations.Searchable;
import org.compass.annotations.SearchableId;

/**
 * @author Edwin Farfan
 * 
 */
@Entity
@Table(name = "clpb_tipo_documento_persona")
@Searchable
public class ClpbTipoDocumentoPersona extends CamposAuditoria {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3259053898075131512L;
	private Long id;
	private String deTipoDocumentoPersona;
	private Integer vaNumeroCaracteres;

	@Column(name = "de_tipo_documento_persona", nullable = false)
	public String getDeTipoDocumentoPersona() {
		return deTipoDocumentoPersona;
	}

	public void setDeTipoDocumentoPersona(String deTipoDocumentoPersona) {
		this.deTipoDocumentoPersona = deTipoDocumentoPersona;
	}

	@Column(name = "va_numero_caracteres", nullable = false)
	public Integer getVaNumeroCaracteres() {
		return vaNumeroCaracteres;
	}

	public void setVaNumeroCaracteres(Integer vaNumeroCaracteres) {
		this.vaNumeroCaracteres = vaNumeroCaracteres;
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE)
	@SearchableId	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		return this.deTipoDocumentoPersona;
	}
	
}
